<?php
/* SVN FILE: $Id$ */
/* TcCobro Test cases generated on: 2009-07-10 10:07:20 : 1247238020*/
App::import('Model', 'TcCobro');

class TcCobroTestCase extends CakeTestCase {
	var $TcCobro = null;
	var $fixtures = array('app.tc_cobro', 'app.tc_tipo_contrato');

	function startTest() {
		$this->TcCobro =& ClassRegistry::init('TcCobro');
	}

	function testTcCobroInstance() {
		$this->assertTrue(is_a($this->TcCobro, 'TcCobro'));
	}

	function testTcCobroFind() {
		$this->TcCobro->recursive = -1;
		$results = $this->TcCobro->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('TcCobro' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor ',
			'tc_tipo_contrato_id'  => 1,
			'valor'  => 1,
			'created'  => '2009-07-10',
			'modified'  => '2009-07-10',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor sit amet'
			));
			$this->assertEqual($results, $expected);
	}
}
?>